﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";
}
@section header {}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <div class="pageContent">
            <h2 class="contentTitle">
                修改用户数据</h2>
            <div class="pageFormContent nowrap" layouth="56">
                @{
                    int id = Utils.StrToInt(ViewData["id"], 0);
                    string rturl = "/SysMenu/List?menu=SysIBUsers&name=list";
                    using (Html.BeginForm("Edit", "OperateTotal", new { id = id, dtnum = (int)Database.Default, name = DencryptHelper.Encrypt("Sys_IBUsers"), url = rturl }, FormMethod.Post, new { @id = "subForm", @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                    {
                        if (Model != null)
                        {
                            Dictionary<string, object> dic = Model;
                    <dl>
                        <dt>用户名：</dt>
                        <dd>
                            @Html.TextBox("t0_username", dic["username"], new { size = 30, maxlength = 20, @class = "required" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>真实姓名：</dt>
                        <dd>
                            @Html.TextBox("t0_realname", dic["realname"], new { size = 30, maxlength = 20, @class = "required" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>性别：</dt>
                        <dd>
                            <label>
                                @Html.RadioButton("t0_sex", "男", dic["sex"].ToString() == "男")男
                            </label>
                            <label>
                                @Html.RadioButton("t0_sex", "女", dic["sex"].ToString() == "女")女
                            </label>
                        </dd>
                    </dl>
                    <dl>
                        <dt>角色ID：</dt>
                        <dd>
                            @{Html.RenderPartial("~/views/SysMenu/SysIBUsers/IBRoles.ascx", dic["groupid"]);}
                        </dd>
                    </dl>
                    <dl>
                        <dt>入职时间：</dt>
                        <dd>
                            <input type="text" value='@dic["DatesEmployed"]' name="t0_DatesEmployed" class="date" format="yyyy-MM-dd" readonly="true" />
                            <a class="inputDateButton" href="javascript:;">选择</a>
                        </dd>
                    </dl>
                    <dl>
                        <dt>&nbsp</dt>
                        <dd>
                            <div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        修改</button></div>
                            </div>
                        </dd>
                        <dd>
                            <a class="button" href='@rturl'><span>返回</span></a></dd>
                    </dl>
                        }
                    }
                }
            </div>
        </div>
    </div>
</div>

<link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
